<template>
  <div class="app">
    <img alt="Vue logo" src="./assets/logo.png" />
    <h1>X: {{x}}, Y:{{y}}</h1>
  </div>

</template>

<script lang="ts">
import useMousePosition from "./hooks/useMousePosition";

  export default{
    name: 'App',
    setup(){
      const {x, y} = useMousePosition()

      return{
        x,
        y,
      }
    }
  }
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
